package com.itcast.demo13;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Demo02 {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress byName = InetAddress.getByName("192.168.15.22");
        String hostName = byName.getHostName();
        System.out.println(hostName);

    }
}
